package com.zoshine.zzg.service;

import com.zoshine.zzg.dao.ReportDao;
import com.zoshine.zzg.pojo.Report;
import com.zoshine.zzg.util.idworker.IdWorker;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * 报表服务实现
 * @author 贾俊峰
 * @time 2017/7/9 14:15
 */
@Service
public class ReportService extends BaseService<Report> {
//    private ReportDao reportDao;
//    private IdWorker<Long> reportIdWorker;
//    @Autowired
//    public void setReportDao(ReportDao reportDao) {
//        this.reportDao = reportDao;
//    }
//    @Autowired
//    public void setReportIdWorker(IdWorker<Long> reportIdWorker) {
//        this.reportIdWorker = reportIdWorker;
//    }
//
//    @Override
//    public void addReport(Report report) {
//        report.setReportId(reportIdWorker.createId());
//        report.setCreateTime(new Date());
//        reportDao.insert(report);
//    }
//
//    @Override
//    public Report getReport(Long reportId) {
//        return reportDao.selectOne(reportId);
//    }
//
//    @Override
//    public List<Report> listReport(Report report) {
//        return reportDao.selectList(report);
//    }
}
